{% load buttons %}
{% load custom_links %}
{% load job_buttons %}
{% load plugins %}
{% load ui_framework %}

<div id="{{ tab_id }}" role="tabpanel" class="tab-pane fade{% if active_tab == tab_id or request.GET.tab == tab_id %} show active{% endif %}">
    {% if include_timestamps_and_buttons %}
        <div class="align-items-center d-flex flex-wrap mb-16 gap-8">
            {% include 'inc/created_updated.html' %}
            <div class="d-flex align-items-center gap-8 flex-grow-0 flex-wrap d-print-none ms-auto">
                {% custom_links object %}
                {% job_buttons object %}
                {% block buttons %}
                    {% plugin_buttons object %}
                    {% render_detail_view_extra_buttons %}
                    {% block extra_buttons %}{% endblock extra_buttons %}
                    {% consolidate_detail_view_action_buttons %}
                {% endblock buttons %}
            </div>
        </div>
    {% else %}
        <div class="align-items-center d-flex flex-wrap mb-16 gap-8">
            <div class="flex-grow-1 m-0"></div>
            <div class="d-flex align-items-center gap-8 flex-grow-0 flex-wrap d-print-none ms-auto">
                {% render_detail_view_extra_buttons %}
            </div>
        </div>
    {% endif %}
    {{ tab_content }}
</div>
